package com.cainiao.mapper;

import com.cainiao.pojo.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SysUserRoleMapper {
    /**
     *  根据主键删除数据库的记录,sys_user_role
     *
     * @param userId
     * @param roleId
     */
    int deleteByPrimaryKey(@Param("userId") String userId, @Param("roleId") String roleId);

    /**
     *  新写入数据库记录,sys_user_role
     *
     * @param record
     */
    int insert(SysUserRole record);

    /**
     *  动态字段,写入数据库记录,sys_user_role
     *
     * @param record
     */
    int insertSelective(SysUserRole record);
}